﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace T.E.ERP.Domains.Sales
{
    /// <summary>
    /// 销售订单表
    /// </summary>
    [Table("SaleOrderInfo")]
    public class SaleOrderInfo
    {
        /// <summary>
        /// 单据编码 主键 销售订单信息表唯一标识
        /// </summary>
        [Key]
        public long Id { get; set; }
        /// <summary>
        /// 业务类型
        /// </summary>
        public int BusinessType { get; set; }
        /// <summary>
        /// 操作员
        /// </summary>
        public string Oprator { get; set; }
        /// <summary>
        /// 客户名称
        /// </summary>
        public string CustomerName { get; set; }
        /// <summary>
        /// 单据日期（默认当前日期：）
        /// </summary>
        public DateTime DocumentDate { get; set; }
        /// <summary>
        /// 收货人
        /// </summary>
        public string Receiver { get; set; }
        /// <summary>
        /// 业务状态（1:正常，2:异常）
        /// </summary>
        public int BusinessStatus { get; set; }
        /// <summary>
        /// 审核员
        /// </summary>
        public int ExamUser { get; set; }
        /// <summary>
        /// 合同号
        /// </summary>
        public string Contract { get; set; }
        /// <summary>
        /// 电话
        /// </summary>
        public string Phone { get; set; }
        /// <summary>
        /// 单据状态（1:开立）
        /// </summary>
        public int DocumentStatus { get; set; }
        /// <summary>
        /// 销售部门
        /// </summary>
        public int SaleDempt { get; set; }
        /// <summary>
        /// 审核日期
        /// </summary>
        public DateTime ExamDate { get; set; }
        /// <summary>
        /// 付款日期
        /// </summary>
        public DateTime PayDate { get; set; }
        /// <summary>
        /// 地址
        /// </summary>
        public string Address { get; set; }
        /// <summary>
        /// 单据类型
        /// </summary>
        public int DocumentType { get; set; }
        /// <summary>
        /// 销售人员
        /// </summary>
        public string SaleUser { get; set; }
        /// <summary>
        /// 销售类型
        /// </summary>
        public int SaleType { get; set; }
        /// <summary>
        /// 交付日期
        /// </summary>
        public DateTime DeliverDate { get; set; }
        /// <summary>
        /// 目的国家
        /// </summary>
        public string GoalCountry { get; set; }
        /// <summary>
        /// 供货方式
        /// </summary>
        public int SupplyType { get; set; }
        /// <summary>
        /// 交期状态（预计 确认）
        /// </summary>
        public bool DeliveryStatus { get; set; }
        /// <summary>
        /// 备注信息
        /// </summary>
        public string Remark { get; set; }
    }
}
